package inter;

public class BlockFunction extends Stmt {
	IdFunction idFunction;
	Stmt innerBlock;
	public BlockFunction(IdFunction idFunction, Stmt innerBlock) {
		super();
		this.idFunction = idFunction;
		this.innerBlock = innerBlock;
	}
	
	//implementar uma gen(int b, int a) e uma toString
	
	public void gen(int b, int a){
		idFunction.gen(0,0);
		emit("{\n");
		innerBlock.gen(0, 0);
		emit("}\n");
	}
	
}
